﻿using System;
using System.Globalization;
using System.Windows.Data;
using EbbinghausWord.Entities;

namespace EbbinghausWord.BLL
{
    /// <summary>
    /// 记忆状态转换器
    /// </summary>
    public class RememberStatusConvertor : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var rememberStatus = (RememberStatus)value;
            switch (rememberStatus)
            {
                case RememberStatus.NotRemember:
                    return "（无）";
                case RememberStatus.Remembering:
                    return "记忆中...";
                default:
                    return "已记住";
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
